package rawengine.tilegame.tilemap;

import rawengine.graphics.Texture;
import rawengine.graphics.animation.Frame;
import rawengine.math.Vector2f;

public class Brick extends Frame{
	
	private Vector2f position;
	private boolean collidable;
	
	
   	
	public Brick(Texture image, int brickIndex)
	{
		super(image, brickIndex, image.getImageWidth(), image.getImageHeight());
					
	}
	
	public Brick(Texture image, int brickIndex, int width, int height)
	{
		super(image, brickIndex, width, height);
					
	}

	
	public Object clone()
	{
		return new Brick(image, index, width, height);
	}



	public Texture getImage()
	{
		return image;
	}

	/**
	 * @param position the position to set
	 */
	public void setPosition(Vector2f position) {
		this.position = position;
	}

	/**
	 * @return the position
	 */
	public Vector2f getPosition() {
		return position;
	}

	/**
	 * @param collidable the collidable to set
	 */
	public void setCollidable(boolean collidable) {
		this.collidable = collidable;
	}

	/**
	 * @return the collidable
	 */
	public boolean isCollidable() {
		return collidable;
	}
	
}
